﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LK.Math
{
    public partial class BitsTest
    {
        static public void GetULong() {
            Log("GetULong Test Start");
            Random r = new Random();
            Bits b = new Bits();
            b.Resize(64 * 3);
            for (int i = 0; i < 64 * 3; ++i) {
                b[i] = (r.Next() & 1) == 0;
            }

            for (int i = -128; i <= 256; ++i)
            {
                Log(Bits.CreateFromArray(new ulong[] { Bits.GetULong(b.Data,0,b.Data.Length,i)}).ToString());
            }
            Log("Done");
        }
    }
}
